import request from '@/utils/request'

export default{
    //生成订单信息
     createOrder(courseId) {
        return request({
            url: `/eduorder/order/createOrder/${courseId}`,
            method: 'post'
        })
    },
    //获取订单信息
    getOrderInfo(orderNo){
        return request({
            url: `/eduorder/order/getOrderInfo/${orderNo}`,
            method: 'get'
        })
    },
    //生成二维码
    createNative(orderNo){
        return request({
            url: `/eduorder/paylog/createNative/${orderNo}`,
            method: 'get'
        })
    },

    //查询订单信息
    queryPayStatus(orderNo){
        return request({
            url: `/eduorder/paylog/queryPayStatus/${orderNo}`,
            method: 'get'
        })
    }
} 